package com.order_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李阳
 * @since 2023-01-06
 */
@Data
@TableName(value = "customer",autoResultMap = true)
@EqualsAndHashCode(callSuper = false)
public class Customer extends Model<Customer> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    private String customerName;

    private String password;

    private String address;


    @Override
    protected Serializable pkVal() {
        return this.customerId;
    }

}
